import { request } from '@/apis';
import { addPrefix } from '@/utils/helper';

const prefixUrl = '/ep-query';

const Api = {
  /** 获取筛选条件 */
  getEnvironmentalPerformanceFilter: '/getEnvironmentalPerformanceFilter',
  getCurrencyCode: '/screen/currencyCode',
  getComparison: '/environmentalPerformanceComparison'
};

addPrefix(Api, prefixUrl);

/** 获取筛选条件 */
export const getEnvironmentalPerformanceFilter = (companyId: string) => request.get({ url: Api.getEnvironmentalPerformanceFilter, params: { companyId } });

/** 获取币种 */
export const getCurrencyCode = () => request.get({ url: Api.getCurrencyCode });

/** 获取数据 */
export const getComparison = (params) => request.get({ url: Api.getComparison, params });
